import {mapGetters} from "vuex"
  export default {
    computed:{
      ...mapGetters('m_cart',['total','getcheckednum'])
    },
    onShow() {
      this.setBadge()
    },
    watch:{
      getcheckednum(){
        this.setBadge()
      }
    },
    methods:{
        setBadge(){
          uni.setTabBarBadge({
            index:2,
            text:this.getcheckednum+''
          })
        }
      }
    }